Micron Document
Fox's Git Mirrors


Displaying Raw • Download

kk/reg.html HEAD (687fd76b) Text, 2.62 KB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Вход</title>
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<script type="text/javascript" src="//vk.com/js/api/openapi.js?139"></script>
<link rel="shortcut icon" href="faviocn.png" type="image/png">
<script src="minajax.js"></script>
</head>
<body>
<center>
<div style="text-align: center" id="vk_auth"></div>
</center>

<script>

</script>
<center>
<div class="w3-border" style="width: 50%">
<div class="w3-container w3-blue" >
<h2>Регистрация</h2>
</div>

<form class="w3-container" >
<p>
<label>Введите логин</label>
<input id="login" class="w3-input w3-animate-input" type="text" style="width: 75%"></p>
<p>
<label>введите пароль</label>
<input id="password" class="w3-input w3-animate-input" type="text" style="width: 75%"></p>
<label>введите email</label>
<input id="email" class="w3-input w3-animate-input" type="text" style="width: 75%"></p>
<label>введите имя , которое будет отображаться в чате</label>
<input id="name" class="w3-input w3-animate-input" type="text" style="width: 75%"></p>


</form>
<center><button class="w3-button w3-blue w3-hover-opacity w3-padding w3-margin w3-large" onclick="reg()">зарегистрироваться</button></center>
<center><button class="w3-button w3-black w3-hover-opacity w3-padding w3-margin w3-large" onclick="home()">у меня уже есть аккаунт</button></center>
</div>
</center>
<script>
function reg() {
minAjax({
url: "https://warm-bayou-37022.herokuapp.com/reg",
type: "POST",
data:{
type:"lp",
login: document.getElementById("login").value,
password: document.getElementById("password").value,
info: document.getElementById("email").value,
name: document.getElementById("name").value
},
success: function (ans) {
if (ans == "success"){
stickers = localStorage.getItem("stickers");
localStorage.clear();
localStorage.setItem("stickers", stickers);
location.href = "test_index.html";
}

}
});
}
function home() {
location.href = "test_index.html"
}
</script>

</body>
</html>
Served by rngit 1.5.0 - Generated in 0.03s